﻿#ifndef U_EquipmentEdit_H
#define U_EquipmentEdit_H

#include "Window/mydialog.h"

class EquipmentEdit : public MyDialog
{
    Q_OBJECT
public:
    explicit EquipmentEdit(Equipment bean, QWidget *parent = nullptr);

signals:

public slots:
    void OnBtnEditClicked();
    void OnBtnResetClicked();

private:
    void InitWidget();
    void SetupConnections();
    void Initialize();

    Equipment      bean;

    QPushButton  *btnEdit;
    QPushButton  *btnReset;

    QLineEdit    *editDevid;
    QLineEdit    *editDevName;
    QLineEdit    *editSerialName;
    QLineEdit    *editdevCode;
    QComboBox    *editBaudRate;
    QComboBox    *editDataBit;
    QComboBox    *editCheckoutBit;
    QComboBox    *editStopBit;
    QLineEdit    *editcosrs;
    QLineEdit    *editcosfs;
    QLineEdit    *editcosgp;
    QLineEdit    *editcos_140;
    QLineEdit    *editcos_18;
    QLineEdit    *editcos_12;
    QLineEdit    *editcos_z18;
    QLineEdit    *editcos_24;
    QLineEdit    *editcosyp;
    QLineEdit    *editcoszf;
    QLineEdit    *editcostz;
    QLineEdit    *editcostd;
    //QCheckBox    *editEnable;
};

#endif // U_EquipmentEdit_H
